import datetime

year = int(input("请输入年份："))
day = int(input("请输入第几天："))

res = datetime.datetime(year,1,1)+datetime.timedelta(day)

print(res.date())